package com.zwps.biz.api.model.dto.role;

import javax.validation.constraints.NotBlank;

import com.zwps.biz.api.enums.RoleStatusEnum;
import com.zwps.common.api.validator.EnumOption;

import org.hibernate.validator.constraints.Length;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Set;

@Schema(description = "新增角色")
@Getter
@Setter
@ToString
public class AddRoleDTO {

    /**
     * 角色名称
     */
    @Schema(description = "角色名称")
    @NotBlank
    @Length(min = 1, max = 100)
    private String roleName;

    /**
     * 描述
     */
    @Schema(description = "描述")
    @Length(max = 255)
    private String description;


    /**
     * 状态（1启用，0禁用）
     */
    @Schema(description = "状态（1启用，0禁用）")
    @EnumOption(RoleStatusEnum.class)
    private Integer status;

    /**
     * 菜单主键id
     */
    @Schema(description = "菜单主键id")
    private Set<String> pagePermissionIds;

}
